package com.zxw.common.web.util.test.thread;


import java.util.concurrent.Callable;

/**
 * @author Xuewei.Zhang
 * @date 2023/2/9
 */
public class MyCallable implements Callable {

    @Override
    public Object call() throws Exception {
        int count = 0;
        for (int i = 0; i < 10; i++) {
            count += i;
        }
        Thread.sleep(2000);
        return count;
    }
}
